package com.bookstore.mapper;

import com.bookstore.entity.Order;
import com.bookstore.entity.Review;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Cofe
 * @Date 2022/5/19 12:38
 */
@Mapper
public interface ReviewMapper {
    //通过指定的图书id去查该图书的评论区
    Integer insertReview(@Param("book_bid")int book_bid,@Param("user_name")String user_name,@Param("book_review")String book_review);
    //查询该图书的所有评论
    List<Review> selectReviewByid( @Param("book_bid") int book_bid);

}
